package cn.tedu.java.generic;

import java.util.Map;

class Container<T>{//泛型类
    void put(T obj){}
    T take(){return null;}
}

class MapContainer<Key,Value>{//泛型类
    void put(Key key,Value value){}
}

interface IList<E>{//泛型接口

}

public class GenericTests {
    public static void main(String[] args) {
        Container<Integer> c=new Container<>();
        c.put(100);

        MapContainer<Integer,String> mapContainer=new MapContainer<>();
        mapContainer.put(100, "A");
    }
}
